﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ForzaGT3.Data;

namespace ForzaGT3.Controllers
{
    public partial class GalleryController : Controller
    {
        //
        // GET: /Gallery/

        public virtual ActionResult Index()
        {
            IEnumerable<Gallery> data = Gallery.GetAll()
                .OrderByDescending(x => x.CreatedDate);

            ViewData.Model = data;

            return View();
        }

    }
}
